package com.medical.lsq.dao;

import com.medical.lsq.entity.SysRole;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface SysRoleMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(SysRole record);

    int insertSelective(SysRole record);

    SysRole selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(SysRole record);

    int updateByPrimaryKey(SysRole record);


    /**
     * 根据areaId获取所有子区域信息列表
     * @return
     */
    List<SysRole> getAreaChilderList(@Param("roleId") String roleId);

    List<SysRole> getRoleList(@Param("roleName") String roleName);
}